import java.io.IOException;
import java.net.*;
//UDP发送端
public class UDP_sent {
    public static void main(String[] args) throws IOException {
        DatagramSocket datagramSocket = new DatagramSocket();
        byte [] bys = "Hello , I`m the UDP sender !".getBytes();
        DatagramPacket datagramPacket = new DatagramPacket(bys , bys.length , InetAddress.getByName("192.168.191.1"),8888);
        datagramSocket.send(datagramPacket);
        datagramSocket.close();
    }
}
